{"version":3,"sources":["settings.js","discourse/templates/components/category-row.js","topic-list-header.raw.js","discourse/templates/components/category-title-link.js","discourse/templates/components/notification-consent-banner.js","discourse/templates/components/topic-category.js","discourse/templates/components/topic-title.js","discourse/templates/components/topic-progress.js","/connectors/topic-list-before-status/vote-count.raw.js","discourse/initializers/theme-field-231-common-html-script-1.js","discourse/initializers/theme-field-231-common-html-script-2.js","discourse/initializers/theme-field-231-common-html-script-3.js","discourse/initializers/theme-field-231-common-html-script-4.js","discourse/initializers/theme-field-231-common-html-script-5.js","discourse/initializers/theme-field-231-common-html-script-6.js","discourse/initializers/theme-field-231-common-html-script-7.js","discourse/initializers/theme-field-231-common-html-script-8.js","discourse/initializers/theme-field-231-common-html-script-9.js","discourse/initializers/theme-field-231-common-html-script-10.js","discourse/initializers/theme-field-231-common-html-script-11.js","discourse/initializers/theme-field-231-common-html-script-12.js","discourse/initializers/theme-field-231-common-html-script-13.js","discourse/initializers/theme-field-231-common-html-script-14.js","_html/common/header_4.js","_html/common/header_5.js"],"names":["window","require","registerSettings","enable_homepage","theme_uploads","define","_exports","_templateFactory","Object","defineProperty","value","default","_default","createTemplateFactory","id","block","moduleName","isStrictMode","addRawTemplate","requirejs","template","compiler","main","container","depth0","helpers","partials","data","lookupProperty","parent","propertyName","prototype","hasOwnProperty","call","escapeExpression","hooks","helperMissing","nullContext","name","hash","order","hashTypes","hashContexts","types","contexts","loc","start","line","column","end","number","sortable","forceName","useData","_pluginApi","getObjectForTheme","after","false","initialize","withPluginApi","api","document","querySelector","setAttribute","replaceIcon","modifyClass","pluginId","dockCheck","info","mainOffset","$","offset","offsetTop","top","topicTop","topicBottom","timelineHeight","this","height","footerHeight","outerHeight","advoNavHeight","prev","dockAt","posTop","parseInt","css","pageYOffset","pos","dockBottom","fastDockAt","queueRerender","_dock","_super","arguments","$wrapper","length","$html","scrollTop","progressHeight","site","mobileView","maximumOffset","windowHeight","composerHeight","isDocked","bottom","wrapperDir","hasClass","set","$replyArea","left","_showUrl","$target","url","$currentTargetOffset","$this","Ember","isEmpty","indexOf","location","protocol","host","shareLinkWidth","width","x","header","y","encodeURI","run","scheduleOnce","_focusUrl","actions","loadingComplete","controllerFor","currentUser","custom_fields","remountWidget","mountFn","mountPoints","map","mountSelector","children","reduce","a","b","inflLoader","onPageChange","h","iconNode","createWidget","tagName","buildKey","defaultState","showBar","contextEnabled","html","attrs","state","display","attributes","href","Discourse","getURL","title","I18n","t","active","count","push","attach","toggleSearchMenu","click","e","preventDefault","schedule","focus","select","searchMenuContextChanged","contextType","register","lookup","get","siteSettings","SiteSettings","user","User","current","discourse_ai_enabled","ai_bot_enabled","aiBotsAllowedGroups","ai_bot_allowed_groups","split","canInteractWithAIBots","groups","some","g","includes","enabledBots","ai_helper_add_ai_pm_to_header","ai_bot_enabled_chat_bots","filter","Boolean","composeAiBotMessage","hbs","botSelectorVisible","outsideClickCount","onclick","sendWidgetAction","toggleAiBotPanel","attachWidgetAction","reopenWidget","buildAttributes","type","autocomplete","placeholder","avatarImg","formatUsername","_ref","linkField","builder","results","r","external_id","useProfileCards","influitive_use_new_profile_cards","updatedAttrs","origin","contents","term","className","searchResultType","searchContextEnabled","searchLogId","username","createSearchResult","u","userTitles","userResultContents","avatar_template","decorateWidget","helper","icon","action","jumpToTop","jumpToPost","body","classList","contains","addPostMenuButton","replyCount","replyDirectlyBelow","suppress_reply_directly_below","repliesShown","titleOptions","labelOptions","label","iconRight","themePrefix","key","$post","$postControls","find","$contentPage","widget","admin","addClass","$replyBtn","$replyToTopicBtn","localizedDescription","attr","view","_findAncestorWithProperty","_emberView","off","on","replyToPost","append","$showRepliesBtn","$label","text","$acceptReplyBtn","voteCatSlugs","list","category","can_vote","slug","didInsertElement","currentCatSlug","each","i","voteCatSlug","attributeBindings","Em","computed","alias","unboundClassNames","classes","topic","vote_count","$voteCount","user_voted","CategoryNotificationsButton","NotificationLevels","reopen","computeContent","c","REGULAR","MUTED","heightRefreshDayRate","heightCheckDelay","attemptTime","getCurrBreakpoint","innerWidth","currHub","hostname","breakpoint","lsKey","lsItem","localStorage","getItem","defaultHeights","JSON","parse","attemptInterval","fn","rate","startTime","Date","now","intervalInstance","setInterval","clearInterval","updateHeight","app","newHeight","setItem","stringify","assign","lastUpdated","updateEl","elSelector","updateHeaderHeightOnResize","addEventListener","needsRefresh","updateApp","appSelector","appKey","testElSelector","heightElSelector","setTimeout","updateAdvoNav","escapeHtml","unsafe","replace","registerHelper","dirty"],"mappings":"AACM,YAAaA,QACfC,QAAQ,sCAAsCC,iBAAiB,IAAK,CAACC,iBAAkB,EAAKC,cAAgB,CAAC,2BAA2B,oGAAoG,yBAAyB,oGAAoG,2BAA2B,oGAAoG,4BAA4B,oGAAoG,8BAA8B,uGCFtoB,WAAYJ,QAChBK,OAAO,kEAAmE,CAAC,UAAW,4BAA4B,SAAUC,EAAUC,GACpI;AAEAC,OAAOC,eAAeH,EAAU,aAAc,CAC5CI,OAAO,IAETJ,EAASK,aAAU;AACnB,IAAIC,GAAW,EAAIL,EAAiBM,uBAiCpC,CACEC,GAAM,KACNC,MAAS,uoCACTC,WAAc,kEACdC,cAAgB;AAElBX,EAASK,QAAUC,CACrB,IChDA,WAWE,MAAMM,EAAiBC,UAAU,sCAAsCD,eACjEE,EAAWD,UAAU,uCAAuCC,SAAS,CAACC,SAAW,CAAC,EAAE,YAAYC,KAAO,SAASC,EAAUC,EAAOC,EAAQC,EAASC,GACtJ,IAAIC,EAAiBL,EAAUK,gBAAkB,SAASC,EAAQC,GAC9D,GAAItB,OAAOuB,UAAUC,eAAeC,KAAKJ,EAAQC,GAC/C,OAAOD,EAAOC,EAGpB;AAEF,MAAO,WACHP,EAAUW,kBAAkBN,EAAeH,EAAQ,QAASD,GAAUI,EAAeJ,EAAO,QAASD,EAAUY,MAAMC,eAAeH,KAAe,MAAVT,EAAiBA,EAAUD,EAAUc,aAAe,CAAC,EAAG,2BAA2B,CAACC,KAAO,MAAMC,KAAO,CAACD,KAAO,YAAYE,MAAQ,WAAWC,UAAY,CA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V,OAAOyT,WAAa,IACd,+DACA,kEAvB8CoC,EAwBpD,yDAvBI5B,iBAAkBA,eAAe0B,IAAyB1B,eAAe0B,GAAQR,YAHvCX,KAAKC,MAAQ,MAMzDL,iBAAgBM,IACIpQ,EAAEsR,GACN5P,SACR8P,YAAW,KACP,MAAMf,EAAYzQ,EAAEuR,GAAkB/Q;AACtC+P,aAAac,EAAQZ,GACrBK,SAASM,EAAaX,EAAU,GA1DzB,KA4DXH,cAAcF,GAClB,GACD,KAZDU,SAASM,EAAazB,eAAe0B,GAAQ7Q,OA0BlC;AC1EjB,MAAMrD,QAAUxB,QAAQ;AACxBwB,QAAQ0U,eAAe,gBAAgB,SAASC,GAC5C,OAAOJ,WAAWI,EAAM,GAC5B","sourceRoot":"theme-166/","sourcesContent":["(function() {\n  if ('require' in window) {\n    require(\"discourse/lib/theme-settings-store\").registerSettings(166, {\"enable_homepage\":true,\"theme_uploads\":{\"proximanova-regular-woff\":\"https://discourse-static.influitive.net/original/1X/554789866cc41b30c2d20c29157547f610d37e48.woff\",\"proximanova-light-woff\":\"https://discourse-static.influitive.net/original/1X/bb724e0609dd3bfbef5660cd1250ceb74def4f9e.woff\",\"proximanova-lightit-woff\":\"https://discourse-static.influitive.net/original/1X/5ef2fa0d95dd36ff21d233177ea8ebb14e507faf.woff\",\"proximanova-semibold-woff\":\"https://discourse-static.influitive.net/original/1X/d3d0db670554257454da02196a666d82f0fe3c78.woff\",\"proximanova-semiboldit-woff\":\"https://discourse-static.influitive.net/original/1X/39e07f77b7741e5c3a31bd123007f561204f57de.woff\"}});\n  }\n})();\n","if ('define' in window) {\ndefine(\"discourse/theme-166/discourse/templates/components/category-row\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    \n    {{#if category}}\n      {{#if hasParentCategory}}\n        <div class=\"category-status\">\n          {{#unless hideParentCategory}}\n            {{badgeForParentCategory}}&nbsp;&#47;&nbsp;\n          {{/unless}}\n          <span>\n            {{badgeForCategory}}\n          </span>\n          <span class=\"topic-count\" aria-label={{i18n \"category_row.topic_count\" count=topicCount}}>\n            &nbsp;&times; {{topicCount}}\n          </span>\n        </div>\n      {{else}}\n        <div class=\"category-status\">\n          {{badgeForCategory}}\n          <span class=\"topic-count\" aria-label={{i18n \"category_row.topic_count\" count=topicCount}}>\n            &nbsp;&times; {{topicCount}}\n          </span>\n        </div>\n      {{/if}}\n  \n      {{#if shouldDisplayDescription}}\n        <div class=\"category-desc\">{{{dir-span description}}}</div>\n      {{/if}}\n    {{else}}\n      {{{label}}}\n    {{/if}}\n  \n  */\n  {\n    \"id\": null,\n    \"block\": \"[[[1,\\\"\\\\n\\\"],[41,[33,1],[[[41,[33,2],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"category-status\\\"],[12],[1,\\\"\\\\n\\\"],[41,[51,[33,4]],[[[1,\\\"          \\\"],[1,[34,5]],[1,\\\" / \\\\n\\\"]],[]],null],[1,\\\"        \\\"],[10,1],[12],[1,\\\"\\\\n          \\\"],[1,[34,6]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n        \\\"],[10,1],[14,0,\\\"topic-count\\\"],[15,\\\"aria-label\\\",[28,[37,7],[\\\"category_row.topic_count\\\"],[[\\\"count\\\"],[[33,8]]]]],[12],[1,\\\"\\\\n           × \\\"],[1,[34,8]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"category-status\\\"],[12],[1,\\\"\\\\n        \\\"],[1,[34,6]],[1,\\\"\\\\n        \\\"],[10,1],[14,0,\\\"topic-count\\\"],[15,\\\"aria-label\\\",[28,[37,7],[\\\"category_row.topic_count\\\"],[[\\\"count\\\"],[[33,8]]]]],[12],[1,\\\"\\\\n           × \\\"],[1,[34,8]],[1,\\\"\\\\n        \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n\\\"]],[]]],[1,\\\"\\\\n\\\"],[41,[33,9],[[[1,\\\"      \\\"],[10,0],[14,0,\\\"category-desc\\\"],[12],[2,[28,[37,10],[[33,11]],null]],[13],[1,\\\"\\\\n\\\"]],[]],null]],[]],[[[1,\\\"    \\\"],[2,[36,12]],[1,\\\"\\\\n\\\"]],[]]]],[],false,[\\\"if\\\",\\\"category\\\",\\\"hasParentCategory\\\",\\\"unless\\\",\\\"hideParentCategory\\\",\\\"badgeForParentCategory\\\",\\\"badgeForCategory\\\",\\\"i18n\\\",\\\"topicCount\\\",\\\"shouldDisplayDescription\\\",\\\"dir-span\\\",\\\"description\\\",\\\"label\\\"]]\",\n    \"moduleName\": \"discourse/theme-166/discourse/templates/components/category-row\",\n    \"isStrictMode\": false\n  });\n  _exports.default = _default;\n});\n}\n","(function() {\n  /*\n\n\n        {{raw \"topic-list-header-column\" order='default' name=listTitle}}\n        {{raw \"topic-list-header-column\" sortable=sortable number='true' order='posts' name='replies'}}\n        {{raw \"topic-list-header-column\" sortable=sortable number='true' order='views' name='views'}}\n        {{raw \"topic-list-header-column\" sortable=sortable number='true' order='activity' name='activity' forceName=(theme-i18n 'category.sort_options.latest_reply')}}\n\n\n  */\n  const addRawTemplate = requirejs('discourse-common/lib/raw-templates').addRawTemplate;\n  const template = requirejs('discourse-common/lib/raw-handlebars').template({\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n    var lookupProperty = container.lookupProperty || function(parent, propertyName) {\n        if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n          return parent[propertyName];\n        }\n        return undefined\n    };\n\n  return \"\\n\\n    \"\n    + container.escapeExpression((lookupProperty(helpers,\"raw\")||(depth0 && lookupProperty(depth0,\"raw\"))||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),\"topic-list-header-column\",{\"name\":\"raw\",\"hash\":{\"name\":\"listTitle\",\"order\":\"default\"},\"hashTypes\":{\"name\":\"PathExpression\",\"order\":\"StringLiteral\"},\"hashContexts\":{\"name\":depth0,\"order\":depth0},\"types\":[\"StringLiteral\"],\"contexts\":[depth0],\"data\":data,\"loc\":{\"start\":{\"line\":3,\"column\":4},\"end\":{\"line\":3,\"column\":69}}}))\n    + \"\\n    \"\n    + container.escapeExpression((lookupProperty(helpers,\"raw\")||(depth0 && lookupProperty(depth0,\"raw\"))||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),\"topic-list-header-column\",{\"name\":\"raw\",\"hash\":{\"name\":\"replies\",\"order\":\"posts\",\"number\":\"true\",\"sortable\":\"sortable\"},\"hashTypes\":{\"name\":\"StringLiteral\",\"order\":\"StringLiteral\",\"number\":\"StringLiteral\",\"sortable\":\"PathExpression\"},\"hashContexts\":{\"name\":depth0,\"order\":depth0,\"number\":depth0,\"sortable\":depth0},\"types\":[\"StringLiteral\"],\"contexts\":[depth0],\"data\":data,\"loc\":{\"start\":{\"line\":4,\"column\":4},\"end\":{\"line\":4,\"column\":99}}}))\n    + \"\\n    \"\n    + container.escapeExpression((lookupProperty(helpers,\"raw\")||(depth0 && lookupProperty(depth0,\"raw\"))||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),\"topic-list-header-column\",{\"name\":\"raw\",\"hash\":{\"name\":\"views\",\"order\":\"views\",\"number\":\"true\",\"sortable\":\"sortable\"},\"hashTypes\":{\"name\":\"StringLiteral\",\"order\":\"StringLiteral\",\"number\":\"StringLiteral\",\"sortable\":\"PathExpression\"},\"hashContexts\":{\"name\":depth0,\"order\":depth0,\"number\":depth0,\"sortable\":depth0},\"types\":[\"StringLiteral\"],\"contexts\":[depth0],\"data\":data,\"loc\":{\"start\":{\"line\":5,\"column\":4},\"end\":{\"line\":5,\"column\":97}}}))\n    + \"\\n    \"\n    + container.escapeExpression((lookupProperty(helpers,\"raw\")||(depth0 && lookupProperty(depth0,\"raw\"))||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),\"topic-list-header-column\",{\"name\":\"raw\",\"hash\":{\"forceName\":(lookupProperty(helpers,\"theme-i18n\")||(depth0 && lookupProperty(depth0,\"theme-i18n\"))||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),166,\"category.sort_options.latest_reply\",{\"name\":\"theme-i18n\",\"hash\":{},\"hashTypes\":{},\"hashContexts\":{},\"types\":[\"NumberLiteral\",\"StringLiteral\"],\"contexts\":[depth0,depth0],\"data\":data,\"loc\":{\"start\":{\"line\":6,\"column\":112},\"end\":{\"line\":6,\"column\":161}}}),\"name\":\"activity\",\"order\":\"activity\",\"number\":\"true\",\"sortable\":\"sortable\"},\"hashTypes\":{\"forceName\":\"SubExpression\",\"name\":\"StringLiteral\",\"order\":\"StringLiteral\",\"number\":\"StringLiteral\",\"sortable\":\"PathExpression\"},\"hashContexts\":{\"forceName\":depth0,\"name\":depth0,\"order\":depth0,\"number\":depth0,\"sortable\":depth0},\"types\":[\"StringLiteral\"],\"contexts\":[depth0],\"data\":data,\"loc\":{\"start\":{\"line\":6,\"column\":4},\"end\":{\"line\":6,\"column\":163}}}))\n    + \"\\n\\n\";\n},\"useData\":true});\n  addRawTemplate(\"topic-list-header\", template);\n})();\n","if ('define' in window) {\ndefine(\"discourse/theme-166/discourse/templates/components/category-title-link\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    \n  {{category-title-before category=category}}\n  <a class=\"category-title-link\" href={{category.url}}>\n    <div class=\"category-text-title\">\n      <span class=\"category-name\">{{dir-span (sanitizeHTML category.name)}}</span>\n    </div>\n    {{#if category.uploaded_logo.url}}\n      {{cdn-img\n        src=category.uploaded_logo.url\n        class=\"category-logo\"\n        width=category.uploaded_logo.width\n        height=category.uploaded_logo.height}}\n    {{/if}}\n  </a>\n  \n  */\n  {\n    \"id\": null,\n    \"block\": \"[[[1,\\\"\\\\n\\\"],[1,[28,[35,0],null,[[\\\"category\\\"],[[33,1]]]]],[1,\\\"\\\\n\\\"],[10,3],[14,0,\\\"category-title-link\\\"],[15,6,[33,1,[\\\"url\\\"]]],[12],[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"category-text-title\\\"],[12],[1,\\\"\\\\n    \\\"],[10,1],[14,0,\\\"category-name\\\"],[12],[1,[28,[35,2],[[28,[37,3],[[33,1,[\\\"name\\\"]]],null]],null]],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"],[41,[33,1,[\\\"uploaded_logo\\\",\\\"url\\\"]],[[[1,\\\"    \\\"],[1,[28,[35,5],null,[[\\\"src\\\",\\\"class\\\",\\\"width\\\",\\\"height\\\"],[[33,1,[\\\"uploaded_logo\\\",\\\"url\\\"]],\\\"category-logo\\\",[33,1,[\\\"uploaded_logo\\\",\\\"width\\\"]],[33,1,[\\\"uploaded_logo\\\",\\\"height\\\"]]]]]],[1,\\\"\\\\n\\\"]],[]],null],[13],[1,\\\"\\\\n\\\"]],[],false,[\\\"category-title-before\\\",\\\"category\\\",\\\"dir-span\\\",\\\"sanitizeHTML\\\",\\\"if\\\",\\\"cdn-img\\\"]]\",\n    \"moduleName\": \"discourse/theme-166/discourse/templates/components/category-title-link\",\n    \"isStrictMode\": false\n  });\n  _exports.default = _default;\n});\n}\n","if ('define' in window) {\ndefine(\"discourse/theme-166/discourse/templates/components/notification-consent-banner\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    \n  \n  \n  */\n  {\n    \"id\": null,\n    \"block\": \"[[[1,\\\"\\\\n\\\\n\\\"]],[],false,[]]\",\n    \"moduleName\": \"discourse/theme-166/discourse/templates/components/notification-consent-banner\",\n    \"isStrictMode\": false\n  });\n  _exports.default = _default;\n});\n}\n","if ('define' in window) {\ndefine(\"discourse/theme-166/discourse/templates/components/topic-category\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    \n  \n      {{#unless topic.isPrivateMessage}}\n          {{#unless topic.category.content_section_enabled}}\n            <span class=\"topic-breadcrumb\"><a href=\"/\">{{ theme-i18n 'topic.breadcrumb.home' }}</a>&nbsp;/&nbsp;</span>\n          {{/unless}}\n          {{#if topic.category.parentCategory}}\n              {{bound-category-link topic.category.parentCategory}}&nbsp;/&nbsp;\n          {{/if}}\n          {{bound-category-link topic.category hideParent=true}}\n      {{/unless}}\n  \n      <div class=\"topic-header-extra\">\n          {{#if siteSettings.tagging_enabled}}\n              <div class=\"list-tags\">\n                  {{discourse-tags topic mode=\"list\"}}\n              </div>\n          {{/if}}\n          {{#if siteSettings.topic_featured_link_enabled}}\n              {{topic-featured-link topic}}\n          {{/if}}\n      </div>\n  \n      {{plugin-outlet name=\"topic-category\" args=(hash topic=topic category=topic.category)}}\n  \n  \n  */\n  {\n    \"id\": null,\n    \"block\": \"[[[1,\\\"\\\\n\\\\n\\\"],[41,[51,[33,1,[\\\"isPrivateMessage\\\"]]],[[[41,[51,[33,1,[\\\"category\\\",\\\"content_section_enabled\\\"]]],[[[1,\\\"          \\\"],[10,1],[14,0,\\\"topic-breadcrumb\\\"],[12],[10,3],[14,6,\\\"/\\\"],[12],[1,[28,[35,2],[166,\\\"topic.breadcrumb.home\\\"],null]],[13],[1,\\\" / \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[33,1,[\\\"category\\\",\\\"parentCategory\\\"]],[[[1,\\\"            \\\"],[1,[28,[35,4],[[33,1,[\\\"category\\\",\\\"parentCategory\\\"]]],null]],[1,\\\" / \\\\n\\\"]],[]],null],[1,\\\"        \\\"],[1,[28,[35,4],[[33,1,[\\\"category\\\"]]],[[\\\"hideParent\\\"],[true]]]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"topic-header-extra\\\"],[12],[1,\\\"\\\\n\\\"],[41,[33,5,[\\\"tagging_enabled\\\"]],[[[1,\\\"            \\\"],[10,0],[14,0,\\\"list-tags\\\"],[12],[1,\\\"\\\\n                \\\"],[1,[28,[35,6],[[33,1]],[[\\\"mode\\\"],[\\\"list\\\"]]]],[1,\\\"\\\\n            \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[41,[33,5,[\\\"topic_featured_link_enabled\\\"]],[[[1,\\\"            \\\"],[1,[28,[35,7],[[33,1]],null]],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"    \\\"],[13],[1,\\\"\\\\n\\\\n    \\\"],[1,[28,[35,8],null,[[\\\"name\\\",\\\"args\\\"],[\\\"topic-category\\\",[28,[37,9],null,[[\\\"topic\\\",\\\"category\\\"],[[33,1],[33,1,[\\\"category\\\"]]]]]]]]],[1,\\\"\\\\n\\\\n\\\"]],[],false,[\\\"unless\\\",\\\"topic\\\",\\\"theme-i18n\\\",\\\"if\\\",\\\"bound-category-link\\\",\\\"siteSettings\\\",\\\"discourse-tags\\\",\\\"topic-featured-link\\\",\\\"plugin-outlet\\\",\\\"hash\\\"]]\",\n    \"moduleName\": \"discourse/theme-166/discourse/templates/components/topic-category\",\n    \"isStrictMode\": false\n  });\n  _exports.default = _default;\n});\n}\n","if ('define' in window) {\ndefine(\"discourse/theme-166/discourse/templates/components/topic-title\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    \n    <div class=\"container\">\n      <div class=\"title-container\">\n        <div class=\"title-wrapper\">\n          {{yield}}\n        </div>\n        <div class=\"title-search\">\n          {{#if model.category.content_section_enabled}}\n            {{#if canEditFirstPost}}\n              {{ d-button id=\"edit-first-post-button\" icon=\"pencil-alt\" action=editFirstPost}}\n              {{ topic-admin-menu-button\n                id=\"content-section-admin-menu\"\n                topic=model\n                hideMultiSelect=hideMultiSelect\n                deleteTopic=deleteTopic\n                recoverTopic=recoverTopic\n                toggleClosed=toggleClosed\n                toggleVisibility=toggleVisibility\n                toggleArchived=toggleArchived\n                showTopicStatusUpdate=showTopicStatusUpdate\n                showFeatureTopic=showFeatureTopic}}\n            {{/if}}\n          {{/if}}\n          {{ mount-widget widget=\"search-button\"}}\n          {{ mount-widget widget=\"ai-bot-button\"}}\n        </div>\n      </div>\n      {{plugin-outlet name=\"topic-title\" args=(hash model=model)}}\n    </div>\n  \n  */\n  {\n    \"id\": null,\n    \"block\": \"[[[1,\\\"\\\\n  \\\"],[10,0],[14,0,\\\"container\\\"],[12],[1,\\\"\\\\n    \\\"],[10,0],[14,0,\\\"title-container\\\"],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"title-wrapper\\\"],[12],[1,\\\"\\\\n        \\\"],[18,1,null],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"title-search\\\"],[12],[1,\\\"\\\\n\\\"],[41,[33,2,[\\\"category\\\",\\\"content_section_enabled\\\"]],[[[41,[33,3],[[[1,\\\"            \\\"],[1,[28,[35,4],null,[[\\\"id\\\",\\\"icon\\\",\\\"action\\\"],[\\\"edit-first-post-button\\\",\\\"pencil-alt\\\",[33,5]]]]],[1,\\\"\\\\n            \\\"],[1,[28,[35,6],null,[[\\\"id\\\",\\\"topic\\\",\\\"hideMultiSelect\\\",\\\"deleteTopic\\\",\\\"recoverTopic\\\",\\\"toggleClosed\\\",\\\"toggleVisibility\\\",\\\"toggleArchived\\\",\\\"showTopicStatusUpdate\\\",\\\"showFeatureTopic\\\"],[\\\"content-section-admin-menu\\\",[33,2],[33,7],[33,8],[33,9],[33,10],[33,11],[33,12],[33,13],[33,14]]]]],[1,\\\"\\\\n\\\"]],[]],null]],[]],null],[1,\\\"        \\\"],[1,[28,[35,15],null,[[\\\"widget\\\"],[\\\"search-button\\\"]]]],[1,\\\"\\\\n        \\\"],[1,[28,[35,15],null,[[\\\"widget\\\"],[\\\"ai-bot-button\\\"]]]],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n    \\\"],[13],[1,\\\"\\\\n    \\\"],[1,[28,[35,16],null,[[\\\"name\\\",\\\"args\\\"],[\\\"topic-title\\\",[28,[37,17],null,[[\\\"model\\\"],[[33,2]]]]]]]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[\\\"&default\\\"],false,[\\\"yield\\\",\\\"if\\\",\\\"model\\\",\\\"canEditFirstPost\\\",\\\"d-button\\\",\\\"editFirstPost\\\",\\\"topic-admin-menu-button\\\",\\\"hideMultiSelect\\\",\\\"deleteTopic\\\",\\\"recoverTopic\\\",\\\"toggleClosed\\\",\\\"toggleVisibility\\\",\\\"toggleArchived\\\",\\\"showTopicStatusUpdate\\\",\\\"showFeatureTopic\\\",\\\"mount-widget\\\",\\\"plugin-outlet\\\",\\\"hash\\\"]]\",\n    \"moduleName\": \"discourse/theme-166/discourse/templates/components/topic-title\",\n    \"isStrictMode\": false\n  });\n  _exports.default = _default;\n});\n}\n","if ('define' in window) {\ndefine(\"discourse/theme-166/discourse/templates/components/topic-progress\", [\"exports\", \"@ember/template-factory\"], function (_exports, _templateFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = (0, _templateFactory.createTemplateFactory)(\n  /*\n    \n    <!-- This code adds a button with the jumpT action on mobile -->\n  \n    {{#unless hideProgress}}\n    {{yield}}\n    {{/unless}}\n  \n    {{#if showBackButton}}\n    <div class='progress-back-container'>\n        {{d-button label=\"topic.timeline.back\" class=\"btn-primary progress-back\" action=\"goBack\" icon=\"arrow-down\"}}\n    </div>\n    {{/if}}\n  \n    <nav id='topic-progress' title=\"{{i18n 'topic.progress.title'}}\" class=\"{{if hideProgress 'hidden'}}\">\n        <div class='nums'>\n            <h4>{{progressPosition}}</h4><span class=\"{{if hugeNumberOfPosts 'hidden'}}\">\n                <span>/</span>\n                <h4>{{postStream.filteredPostsCount}}</h4>\n            </span>\n        </div>\n    </nav>\n  \n    <div class=\"topic-top-button\">\n        {{d-button class=\"to-top widget-button\" action=\"jumpToTop\" icon=\"arrow-up\"}}\n    </div>\n  \n  \n  */\n  {\n    \"id\": null,\n    \"block\": \"[[[1,\\\"\\\\n  \\\"],[3,\\\" This code adds a button with the jumpT action on mobile \\\"],[1,\\\"\\\\n\\\\n\\\"],[41,[51,[33,1]],[[[1,\\\"  \\\"],[18,1,null],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n\\\"],[41,[33,4],[[[1,\\\"  \\\"],[10,0],[14,0,\\\"progress-back-container\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,5],null,[[\\\"label\\\",\\\"class\\\",\\\"action\\\",\\\"icon\\\"],[\\\"topic.timeline.back\\\",\\\"btn-primary progress-back\\\",\\\"goBack\\\",\\\"arrow-down\\\"]]]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\"]],[]],null],[1,\\\"\\\\n  \\\"],[10,\\\"nav\\\"],[14,1,\\\"topic-progress\\\"],[15,\\\"title\\\",[29,[[28,[37,6],[\\\"topic.progress.title\\\"],null]]]],[15,0,[29,[[52,[33,1],\\\"hidden\\\"]]]],[12],[1,\\\"\\\\n      \\\"],[10,0],[14,0,\\\"nums\\\"],[12],[1,\\\"\\\\n          \\\"],[10,\\\"h4\\\"],[12],[1,[34,7]],[13],[10,1],[15,0,[29,[[52,[33,8],\\\"hidden\\\"]]]],[12],[1,\\\"\\\\n              \\\"],[10,1],[12],[1,\\\"/\\\"],[13],[1,\\\"\\\\n              \\\"],[10,\\\"h4\\\"],[12],[1,[33,9,[\\\"filteredPostsCount\\\"]]],[13],[1,\\\"\\\\n          \\\"],[13],[1,\\\"\\\\n      \\\"],[13],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n  \\\"],[10,0],[14,0,\\\"topic-top-button\\\"],[12],[1,\\\"\\\\n      \\\"],[1,[28,[35,5],null,[[\\\"class\\\",\\\"action\\\",\\\"icon\\\"],[\\\"to-top widget-button\\\",\\\"jumpToTop\\\",\\\"arrow-up\\\"]]]],[1,\\\"\\\\n  \\\"],[13],[1,\\\"\\\\n\\\\n\\\"]],[\\\"&default\\\"],false,[\\\"unless\\\",\\\"hideProgress\\\",\\\"yield\\\",\\\"if\\\",\\\"showBackButton\\\",\\\"d-button\\\",\\\"i18n\\\",\\\"progressPosition\\\",\\\"hugeNumberOfPosts\\\",\\\"postStream\\\"]]\",\n    \"moduleName\": \"discourse/theme-166/discourse/templates/components/topic-progress\",\n    \"isStrictMode\": false\n  });\n  _exports.default = _default;\n});\n}\n","(function() {\n  /*\n\n        <a href=\"\" class='vote-count-before-title'>{{d-icon 'caret-up'}}</a>\n\n  */\n  const addRawTemplate = requirejs('discourse-common/lib/raw-templates').addRawTemplate;\n  const template = requirejs('discourse-common/lib/raw-handlebars').template({\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n    var lookupProperty = container.lookupProperty || function(parent, propertyName) {\n        if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n          return parent[propertyName];\n        }\n        return undefined\n    };\n\n  return \"\\n    <a href=\\\"\\\" class='vote-count-before-title'>\"\n    + container.escapeExpression((lookupProperty(helpers,\"d-icon\")||(depth0 && lookupProperty(depth0,\"d-icon\"))||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),\"caret-up\",{\"name\":\"d-icon\",\"hash\":{},\"hashTypes\":{},\"hashContexts\":{},\"types\":[\"StringLiteral\"],\"contexts\":[depth0],\"data\":data,\"loc\":{\"start\":{\"line\":2,\"column\":47},\"end\":{\"line\":2,\"column\":68}}}))\n    + \"</a>\\n\";\n},\"useData\":true});\n  addRawTemplate(\"/connectors/topic-list-before-status/vote-count\", template);\n})();\n","if ('define' in window) {\ndefine(\"discourse/theme-166/initializers/theme-field-231-common-html-script-1\", [\"exports\", \"discourse/lib/plugin-api\"], function (_exports, _pluginApi) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const settings = require(\"discourse/lib/theme-settings-store\").getObjectForTheme(166);\n  const themePrefix = key => `theme_translations.166.${key}`;\n  var _default = {\n    name: \"theme-field-231-common-html-script-1\",\n    after: \"inject-objects\",\n    initialize() {\n      (0, _pluginApi.withPluginApi)(\"0.8\", api => {\n        /**\n        * This is a temporary fix that removes the maximum-scale from the viewport. To be removed after 2.2.5 update.\n        * https://github.com/discourse/discourse/commit/5e546ba7d12a91f740696dccae63cf1823f24615\n        */\n        document.querySelector('meta[name=viewport]').setAttribute('content', 'width=device-width, initial-scale=1.0, minimum-scale=1.0, user-scalable=yes, viewport-fit=cover');\n      });\n    }\n  };\n  _exports.default = _default;\n});\n}\n","if ('define' in window) {\ndefine(\"discourse/theme-166/initializers/theme-field-231-common-html-script-2\", [\"exports\", \"discourse/lib/plugin-api\"], function (_exports, _pluginApi) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const settings = require(\"discourse/lib/theme-settings-store\").getObjectForTheme(166);\n  const themePrefix = key => `theme_translations.166.${key}`;\n  var _default = {\n    name: \"theme-field-231-common-html-script-2\",\n    after: \"inject-objects\",\n    initialize() {\n      (0, _pluginApi.withPluginApi)(\"0.8\", api => {\n        api.replaceIcon('d-liked', 'thumbs-up');\n        api.replaceIcon('d-unliked', 'thumbs-up');\n        api.replaceIcon('notification.liked', 'thumbs-up');\n        api.replaceIcon('notification.liked_2', 'thumbs-up');\n        api.replaceIcon('notification.liked_many', 'thumbs-up');\n        api.replaceIcon('heart', 'thumbs-up');\n      });\n    }\n  };\n  _exports.default = _default;\n});\n}\n","if ('define' in window) {\ndefine(\"discourse/theme-166/initializers/theme-field-231-common-html-script-3\", [\"exports\", \"discourse/lib/plugin-api\"], function (_exports, _pluginApi) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const settings = require(\"discourse/lib/theme-settings-store\").getObjectForTheme(166);\n  const themePrefix = key => `theme_translations.166.${key}`;\n  var _default = {\n    name: \"theme-field-231-common-html-script-3\",\n    after: \"inject-objects\",\n    initialize() {\n      (0, _pluginApi.withPluginApi)(\"0.8\", api => {\n        /**\n        * This is to fix the timeline being offset by the advocate-nav header\n        */\n        const headerPadding = () => parseInt($(\"#main-outlet\").css(\"padding-top\")) + 3;\n        api.modifyClass(\"component:topic-timeline\", {\n          pluginId: 'discourse-theme-qa',\n          dockCheck(info) {\n            const mainOffset = $(\"#main\").offset();\n            const offsetTop = mainOffset ? mainOffset.top : 0;\n            const topicTop = $(\".container.posts\").offset().top - offsetTop;\n            const topicBottom = $(\"#topic-bottom\").offset().top;\n            const $timeline = this.$(\".timeline-container\");\n            const timelineHeight = $timeline.height() || 400;\n            const footerHeight = $(\".timeline-footer-controls\").outerHeight(true) || 0;\n            const $advoNav = $(\"#infl-fe-advocate-nav\");\n            const advoNavHeight = $advoNav.height() || 179;\n            const prev = this.dockAt;\n            const posTop = headerPadding() + window.pageYOffset;\n            const pos = posTop + timelineHeight;\n            this.dockBottom = false;\n            if (posTop < topicTop) {\n              this.dockAt = parseInt(topicTop, 10);\n            } else if (pos > topicBottom + footerHeight - advoNavHeight) {\n              this.dockAt = parseInt(topicBottom - timelineHeight + footerHeight - advoNavHeight, 10);\n              this.dockBottom = true;\n              if (this.dockAt < 0) {\n                this.dockAt = 0;\n              }\n            } else {\n              this.dockAt = null;\n              this.fastDockAt = parseInt(topicBottom - timelineHeight + footerHeight - offsetTop - advoNavHeight, 10);\n            }\n            if (this.dockAt !== prev) {\n              this.queueRerender();\n            }\n          }\n        });\n\n        /**\n         * This is to fix the topic progress (timeline) on mobile being offset by the advocate-nav header\n         */\n        api.modifyClass(\"component:topic-progress\", {\n          pluginId: 'discourse-theme-qa',\n          _dock() {\n            this._super(...arguments);\n            const $wrapper = this.$();\n            if (!$wrapper || $wrapper.length === 0) return;\n            const $html = $(\"html\");\n            const offset = window.pageYOffset || $html.scrollTop();\n            const progressHeight = this.site.mobileView ? 0 : $(\"#topic-progress\").height();\n            const maximumOffset = $(\"#topic-bottom\").offset().top + progressHeight;\n            const windowHeight = $(window).height();\n            const composerHeight = $(\"#reply-control\").height() || 0;\n            const isDocked = offset >= maximumOffset - windowHeight + composerHeight;\n            const bottom = $(\"body\").height() - maximumOffset;\n            const wrapperDir = $html.hasClass(\"rtl\") ? \"left\" : \"right\";\n            if (composerHeight > 0) {\n              $wrapper.css(\"bottom\", isDocked ? bottom : composerHeight);\n            } else {\n              $wrapper.css(\"bottom\", isDocked ? bottom : \"\");\n            }\n            this.set(\"docked\", isDocked);\n            const $replyArea = $(\"#reply-control .reply-area\");\n            if ($replyArea && $replyArea.length > 0) {\n              $wrapper.css(wrapperDir, `${$replyArea.offset().left}px`);\n            } else {\n              $wrapper.css(wrapperDir, \"1em\");\n            }\n          }\n        });\n\n        /**\n         * This is to fix the share popup for links being offset by the advocate-nav header\n         */\n        api.modifyClass(\"controller:share-topic\", {\n          // AI-GEN START - Cursor\n          pluginId: 'discourse-theme-qa',\n          _showUrl($target, url) {\n            const $advoNav = $(\"#infl-fe-advocate-nav\");\n            const advoNavHeight = $advoNav.height() || 179;\n            const $currentTargetOffset = $target.offset();\n            const $this = this.$();\n            if (Ember.isEmpty(url)) {\n              return;\n            }\n\n            // Relative urls\n            if (url.indexOf(\"/\") === 0) {\n              url = window.location.protocol + \"//\" + window.location.host + url;\n            }\n            const shareLinkWidth = $this.width();\n            let x = $currentTargetOffset.left - shareLinkWidth / 2;\n            if (x < 25) {\n              x = 25;\n            }\n            if (x + shareLinkWidth > $(window).width()) {\n              x -= shareLinkWidth / 2;\n            }\n            const header = $(\".d-header\");\n            let y = $currentTargetOffset.top - ($this.height() + 35) - advoNavHeight;\n            if (y < header.offset().top + header.height() + advoNavHeight) {\n              y = $currentTargetOffset.top + 35 - advoNavHeight;\n            }\n            $this.css({\n              top: \"\" + y + \"px\"\n            });\n            if (!this.site.mobileView) {\n              $this.css({\n                left: \"\" + x + \"px\"\n              });\n            }\n            this.set(\"link\", encodeURI(url));\n            this.set(\"visible\", true);\n            Ember.run.scheduleOnce(\"afterRender\", this, this._focusUrl);\n          }\n        });\n\n        /**\n         * This is to prevent the page from scrolling to top whenever \"latest\", \"top\" or \"categories\" section is loaded\n         */\n        api.modifyClass('route:discovery', {\n          pluginId: 'discourse-theme-qa',\n          actions: {\n            loadingComplete() {\n              this.controllerFor(\"discovery\").loadingComplete();\n              this.controllerFor(\"discovery\").set(\"hideAWSDiscussions\", this.currentUser && this.currentUser.custom_fields['hide_search'] == 'true');\n              // if (!this.session.get(\"topicListScrollPosition\")) {\n              //   scrollTop();\n              // }\n            }\n          }\n        });\n      });\n    }\n  };\n  _exports.default = _default;\n});\n}\n","if ('define' in window) {\ndefine(\"discourse/theme-166/initializers/theme-field-231-common-html-script-4\", [\"exports\", \"discourse/lib/plugin-api\"], function (_exports, _pluginApi) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const settings = require(\"discourse/lib/theme-settings-store\").getObjectForTheme(166);\n  const themePrefix = key => `theme_translations.166.${key}`;\n  var _default = {\n    name: \"theme-field-231-common-html-script-4\",\n    after: \"inject-objects\",\n    initialize() {\n      (0, _pluginApi.withPluginApi)(\"0.8\", api => {\n        /**\n        * This code fixes the re-rendering issue when switching between pages\n        **/\n        function remountWidget(mountFn, mountPoints) {\n          const emptyMountPoints = mountPoints.map(mountSelector => {\n            return $(mountSelector).length > 0 && $(mountSelector).children().length === 0;\n          }).reduce((a, b) => a && b);\n          if (emptyMountPoints && typeof window.inflLoader !== 'undefined' && typeof window.inflLoader[mountFn] !== 'undefined') {\n            window.inflLoader[mountFn]();\n          }\n        }\n        api.onPageChange(() => {\n          remountWidget('loadAdvocateNav', ['#infl-fe-advocate-nav']);\n          remountWidget('loadStreaker', ['#infl-fe-streaker-mobile', '#infl-fe-streaker-desktop']);\n          remountWidget('loadChallengesCarousel', ['#infl-fe-challenges-carousel']);\n          remountWidget('loadActivityFeed', ['#COMMUNITY_FEED_CONTAINER']);\n          remountWidget('loadLeaderboard', ['#infl-fe-leaderboard']);\n          remountWidget('loadMountainDewCustomization', ['body.c-forum']);\n        });\n      });\n    }\n  };\n  _exports.default = _default;\n});\n}\n","if ('define' in window) {\ndefine(\"discourse/theme-166/initializers/theme-field-231-common-html-script-5\", [\"exports\", \"discourse/lib/plugin-api\"], function (_exports, _pluginApi) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const settings = require(\"discourse/lib/theme-settings-store\").getObjectForTheme(166);\n  const themePrefix = key => `theme_translations.166.${key}`;\n  var _default = {\n    name: \"theme-field-231-common-html-script-5\",\n    after: \"inject-objects\",\n    initialize() {\n      (0, _pluginApi.withPluginApi)(\"0.8\", api => {\n        /**\n        * This code creates the search-button widget\n        **/\n        const h = require('virtual-dom').h;\n        const iconNode = require('discourse-common/lib/icon-library').iconNode;\n        api.createWidget('search-button', {\n          tagName: 'div.search-button',\n          buildKey: () => `search-button`,\n          defaultState: function () {\n            return {\n              showBar: false,\n              contextEnabled: false\n            };\n          },\n          html(attrs, state) {\n            if (this.currentUser && this.currentUser.custom_fields['hide_search'] === 'true') {\n              return;\n            }\n            let display = [h(\"a.icon.btn.no-text.btn-primary\", {\n              attributes: {\n                href: Discourse.getURL(\"/search\"),\n                \"data-auto-route\": true,\n                title: I18n.t(\"search.title\"),\n                \"aria-label\": \"search.title\",\n                active: state.showBar,\n                id: \"search-button\"\n              }\n            }, iconNode('search')), h('span', [state.count])];\n            if (state.showBar) {\n              display.push(this.attach(\"search-menu\", {\n                contextEnabled: state.contextEnabled\n              }));\n            }\n            return display;\n          },\n          toggleSearchMenu() {\n            this.state.showBar = !this.state.showBar;\n          },\n          click(e) {\n            e.preventDefault();\n            if (!this.state.showBar) {\n              this.state.showBar = true;\n              Ember.run.schedule(\"afterRender\", () => {\n                const $searchInput = $(\"#search-term\");\n                $searchInput.focus().select();\n              });\n            }\n          },\n          // this is a on-change callback when the \"search this topic/category\" context checkbox is toggled\n          // gets toggled in the search bar\n          searchMenuContextChanged(value) {\n            this.state.contextType = this.register.lookup(\"search-service:main\").get(\"contextType\");\n            this.state.contextEnabled = value;\n          }\n        });\n      });\n    }\n  };\n  _exports.default = _default;\n});\n}\n","if ('define' in window) {\ndefine(\"discourse/theme-166/initializers/theme-field-231-common-html-script-6\", [\"exports\", \"discourse/lib/plugin-api\"], function (_exports, _pluginApi) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const settings = require(\"discourse/lib/theme-settings-store\").getObjectForTheme(166);\n  const themePrefix = key => `theme_translations.166.${key}`;\n  var _default = {\n    name: \"theme-field-231-common-html-script-6\",\n    after: \"inject-objects\",\n    initialize() {\n      (0, _pluginApi.withPluginApi)(\"0.8\", api => {\n        /**\n        * This code creates the AI Bot widget\n        **/\n\n        const siteSettings = Discourse.SiteSettings;\n        const user = Discourse.User.current();\n        const aiBotEnaled = siteSettings.discourse_ai_enabled && siteSettings.ai_bot_enabled;\n        if (aiBotEnaled) {\n          const aiBotsAllowedGroups = siteSettings.ai_bot_allowed_groups.split(\"|\").map(id => parseInt(id, 10));\n          const canInteractWithAIBots = user?.groups.some(g => aiBotsAllowedGroups.includes(g.id));\n          if (canInteractWithAIBots) {\n            const enabledBots = siteSettings.ai_helper_add_ai_pm_to_header ? siteSettings.ai_bot_enabled_chat_bots.split(\"|\").filter(Boolean) : [];\n            if (enabledBots.length > 0) {\n              const h = require('virtual-dom').h;\n              const iconNode = require('discourse-common/lib/icon-library').iconNode;\n              const hbs = require(\"discourse/widgets/hbs-compiler\").hbs;\n              const composeAiBotMessage = require(\"discourse/plugins/discourse-ai/discourse/lib/ai-bot-helper\").composeAiBotMessage;\n              api.createWidget('ai-bot-button', {\n                tagName: 'div.ai-bot-button',\n                buildKey: () => `ai-bot-button`,\n                defaultState: function () {\n                  return {\n                    botSelectorVisible: false,\n                    enabledBots: enabledBots,\n                    outsideClickCount: 0\n                  };\n                },\n                html(attrs) {\n                  let display = [h(\"a.icon.btn.no-text.btn-primary\", {\n                    attributes: {\n                      title: I18n.t(\"discourse_ai.ai_bot.shortcut_title\"),\n                      \"aria-label\": I18n.t(\"discourse_ai.ai_bot.shortcut_title\"),\n                      active: false,\n                      id: \"ai-bot-button\"\n                    },\n                    onclick: () => this.sendWidgetAction(\"toggleAiBotPanel\")\n                  }, iconNode('robot'))];\n                  if (this.state.botSelectorVisible) {\n                    display.push(this.attach(\"ai-bot-header-panel-wrapper\"));\n                  }\n                  return display;\n                },\n                toggleAiBotPanel() {\n                  if (this.state.enabledBots.length === 1) {\n                    composeAiBotMessage(this.state.enabledBots[0], api.container.lookup(\"service:composer\"));\n                  } else {\n                    this.sendWidgetAction(\"showAiBotPanel\");\n                  }\n                }\n              });\n              api.attachWidgetAction(\"ai-bot-button\", \"showAiBotPanel\", function () {\n                this.state.botSelectorVisible = !this.state.botSelectorVisible;\n              });\n              api.attachWidgetAction(\"ai-bot-button\", \"hideAiBotPanel\", function () {\n                this.state.outsideClickCount += 1;\n                if (this.state.outsideClickCount > 1) {\n                  this.state.botSelectorVisible = false;\n                  this.state.outsideClickCount = 0;\n                }\n              });\n            }\n          }\n        }\n      });\n    }\n  };\n  _exports.default = _default;\n});\n}\n","if ('define' in window) {\ndefine(\"discourse/theme-166/initializers/theme-field-231-common-html-script-7\", [\"exports\", \"discourse/lib/plugin-api\"], function (_exports, _pluginApi) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const settings = require(\"discourse/lib/theme-settings-store\").getObjectForTheme(166);\n  const themePrefix = key => `theme_translations.166.${key}`;\n  var _default = {\n    name: \"theme-field-231-common-html-script-7\",\n    after: \"inject-objects\",\n    initialize() {\n      (0, _pluginApi.withPluginApi)(\"0.8\", api => {\n        /**\n        * This code adds an aria-label for the accessibility of the the search input\n        **/\n        api.reopenWidget(\"search-term\", {\n          buildAttributes(attrs) {\n            return {\n              type: \"text\",\n              \"aria-label\": \"Search through the forum\",\n              value: attrs.value || \"\",\n              autocomplete: \"off\",\n              placeholder: attrs.contextEnabled ? \"\" : I18n.t(\"search.title\")\n            };\n          }\n        });\n      });\n    }\n  };\n  _exports.default = _default;\n});\n}\n","if ('define' in window) {\ndefine(\"discourse/theme-166/initializers/theme-field-231-common-html-script-8\", [\"exports\", \"discourse/lib/plugin-api\"], function (_exports, _pluginApi) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const settings = require(\"discourse/lib/theme-settings-store\").getObjectForTheme(166);\n  const themePrefix = key => `theme_translations.166.${key}`;\n  var _default = {\n    name: \"theme-field-231-common-html-script-8\",\n    after: \"inject-objects\",\n    initialize() {\n      (0, _pluginApi.withPluginApi)(\"0.8\", api => {\n        /**\n        * This code update the link for the user in the search results to link the Influitive's profile\n        **/\n        const h = require(\"virtual-dom\").h;\n        const avatarImg = require(\"discourse/widgets/post\").avatarImg;\n        const formatUsername = require(\"discourse/lib/utilities\").formatUsername;\n        function createSearchResult(_ref) {\n          let {\n            type,\n            linkField,\n            builder\n          } = _ref;\n          api.reopenWidget(\"search-result-user\", {\n            tagName: \"ul.list\",\n            html(attrs) {\n              return attrs.results.map(r => {\n                if (r.external_id) {\n                  const useProfileCards = this.siteSettings.influitive_use_new_profile_cards;\n                  const updatedAttrs = {\n                    href: window.location.origin + \"/profiles/\" + r.external_id,\n                    contents: () => builder.call(this, r, attrs.term),\n                    className: \"search-link\",\n                    searchResultType: type,\n                    searchContextEnabled: attrs.searchContextEnabled,\n                    searchLogId: attrs.searchLogId\n                  };\n                  if (useProfileCards) {\n                    updatedAttrs[\"data-user-card\"] = r.username;\n                  }\n                  return h(\"li.item\", this.attach(\"link\", updatedAttrs));\n                }\n              });\n            }\n          });\n        }\n        createSearchResult({\n          type: \"user\",\n          linkField: \"path\",\n          builder(u) {\n            const userTitles = [];\n            if (u.name) {\n              userTitles.push(h(\"span.name\", u.name));\n            }\n            userTitles.push(h(\"span.username\", formatUsername(u.username)));\n            const userResultContents = [avatarImg(\"small\", {\n              template: u.avatar_template,\n              username: u.username\n            }), h(\"div.user-titles\", userTitles)];\n            return h(\"div.user-result\", userResultContents);\n          }\n        });\n      });\n    }\n  };\n  _exports.default = _default;\n});\n}\n","if ('define' in window) {\ndefine(\"discourse/theme-166/initializers/theme-field-231-common-html-script-9\", [\"exports\", \"discourse/lib/plugin-api\"], function (_exports, _pluginApi) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const settings = require(\"discourse/lib/theme-settings-store\").getObjectForTheme(166);\n  const themePrefix = key => `theme_translations.166.${key}`;\n  var _default = {\n    name: \"theme-field-231-common-html-script-9\",\n    after: \"inject-objects\",\n    initialize() {\n      (0, _pluginApi.withPluginApi)(\"0.8\", api => {\n        api.decorateWidget(\"topic-timeline:after\", helper => {\n          return helper.attach(\"button\", {\n            className: \"to-top\",\n            icon: \"arrow-up\",\n            action: \"jumpTop\"\n          });\n        });\n      });\n    }\n  };\n  _exports.default = _default;\n});\n}\n","if ('define' in window) {\ndefine(\"discourse/theme-166/initializers/theme-field-231-common-html-script-10\", [\"exports\", \"discourse/lib/plugin-api\"], function (_exports, _pluginApi) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const settings = require(\"discourse/lib/theme-settings-store\").getObjectForTheme(166);\n  const themePrefix = key => `theme_translations.166.${key}`;\n  var _default = {\n    name: \"theme-field-231-common-html-script-10\",\n    after: \"inject-objects\",\n    initialize() {\n      (0, _pluginApi.withPluginApi)(\"0.8\", api => {\n        /**\n        * This code adds a method called jumpT for the topic-progress mobile\n        **/\n        api.modifyClass('component:topic-progress', {\n          pluginId: 'discourse-theme-qa',\n          actions: {\n            jumpToTop() {\n              this.jumpToPost(1);\n            }\n          }\n        });\n      });\n    }\n  };\n  _exports.default = _default;\n});\n}\n","if ('define' in window) {\ndefine(\"discourse/theme-166/initializers/theme-field-231-common-html-script-11\", [\"exports\", \"discourse/lib/plugin-api\"], function (_exports, _pluginApi) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const settings = require(\"discourse/lib/theme-settings-store\").getObjectForTheme(166);\n  const themePrefix = key => `theme_translations.166.${key}`;\n  var _default = {\n    name: \"theme-field-231-common-html-script-11\",\n    after: \"inject-objects\",\n    initialize() {\n      (0, _pluginApi.withPluginApi)(\"0.8\", api => {\n        /**\n        * This code adds Show Replies button to actions div (to make it appear after the like button)\n        * Based on Discourse post-menu replies button\n        **/\n        if (document.body.classList.contains('discourse-usability-enabled')) {\n          api.addPostMenuButton(\"show-replies\", (attrs, state, siteSettings) => {\n            const replyCount = attrs.replyCount;\n            if (!replyCount) {\n              return;\n            }\n\n            // Omit replies if the setting `suppress_reply_directly_below` is enabled\n            if (replyCount === 1 && attrs.replyDirectlyBelow && siteSettings.suppress_reply_directly_below) {\n              return;\n            }\n            return {\n              action: \"toggleRepliesBelow\",\n              className: `show-replies-action ${state.repliesShown && 'is-active'}`,\n              icon: \"comment\",\n              titleOptions: {\n                count: replyCount\n              },\n              title: \"post.has_replies\",\n              labelOptions: {\n                count: replyCount\n              },\n              label: \"post.has_replies\",\n              iconRight: true\n            };\n          });\n        }\n      });\n    }\n  };\n  _exports.default = _default;\n});\n}\n","if ('define' in window) {\ndefine(\"discourse/theme-166/initializers/theme-field-231-common-html-script-12\", [\"exports\", \"discourse/lib/plugin-api\"], function (_exports, _pluginApi) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const settings = require(\"discourse/lib/theme-settings-store\").getObjectForTheme(166);\n  const themePrefix = key => `theme_translations.166.${key}`;\n  var _default = {\n    name: \"theme-field-231-common-html-script-12\",\n    after: \"inject-objects\",\n    initialize() {\n      (0, _pluginApi.withPluginApi)(\"0.8\", api => {\n        /**\n        * This code adds Reply to Topic functionality and updates show replies and accept answer buttons\n        **/\n        api.decorateWidget('post-menu:after', helper => {\n          if (document.body.classList.contains('discourse-usability-enabled')) {\n            Ember.run.scheduleOnce('afterRender', this, () => {\n              const $post = $(`[data-post-id=\"${helper.attrs.id}\"]`);\n              const $postControls = $post.find('.post-controls');\n              const $contentPage = $('.content-section-topic-container');\n              if (!helper.widget.currentUser.admin) {\n                let $replyBtn = $post.find('.reply:not(.reply-to-topic)');\n                let $replyToTopicBtn = $post.find('.reply-to-topic');\n\n                // hijack the original reply button's title and aria-label\n                if ($replyBtn) {\n                  const localizedDescription = I18n.t(themePrefix(\"usability_plugin.reply_to_post_description\"), {\n                    username: helper.attrs.username\n                  });\n                  $replyBtn.attr('title', localizedDescription);\n                  $replyBtn.attr('aria-label', localizedDescription);\n                }\n\n                // Do not add the \"Reply To Topic\" in Content Pages\n                if (!$contentPage.length && !$replyToTopicBtn.length) {\n                  $replyToTopicBtn = $(`\n              <button\n                class=\"widget-button btn-flat reply reply-to-topic create fade-out btn-icon-text\"\n                aria-label=\"${I18n.t(themePrefix(\"usability_plugin.reply_to_topic_description\"))}\"\n                title=\"${I18n.t(themePrefix(\"usability_plugin.reply_to_topic_description\"))}\">\n                <svg\n                  class=\"fa d-icon d-icon-reply svg-icon svg-node\"\n                  aria-hidden=\"true\"\n                  xmlns=\"http://www.w3.org/2000/svg\"\n                  viewBox=\"0 0 576 512\">\n                  <path d=\"M136.309 189.836L312.313 37.851C327.72 24.546 352 35.348 352 56.015v82.763c129.182 10.231 224 52.212 224 183.548 0 61.441-39.582 122.309-83.333 154.132-13.653 9.931-33.111-2.533-28.077-18.631 38.512-123.162-3.922-169.482-112.59-182.015v84.175c0 20.701-24.3 31.453-39.687 18.164L136.309 226.164c-11.071-9.561-11.086-26.753 0-36.328zm-128 36.328L184.313 378.15C199.7 391.439 224 380.687 224 359.986v-15.818l-108.606-93.785A55.96 55.96 0 0 1 96 207.998a55.953 55.953 0 0 1 19.393-42.38L224 71.832V56.015c0-20.667-24.28-31.469-39.687-18.164L8.309 189.836c-11.086 9.575-11.071 26.767 0 36.328z\"/>\n                </svg><span class=\"d-button-label\">${I18n.t(themePrefix(\"usability_plugin.reply_to_topic\"))}</span>\n              </button>\n            `);\n                  const view = helper.widget._findAncestorWithProperty(\"_emberView\")._emberView;\n                  $replyToTopicBtn.off('click').on('click', () => view.replyToPost());\n                }\n                $postControls.find('.actions').append($replyToTopicBtn);\n              } else {\n                $postControls.find('.actions').addClass('is-admin');\n              }\n              const $showRepliesBtn = $postControls.find('.widget-button.show-replies-action');\n              if ($showRepliesBtn.length) {\n                const $label = $showRepliesBtn.find('.d-button-label');\n                $label.text($label.text().split(' ')[0]);\n                $showRepliesBtn.parent().addClass('show-replies-action-wrapper');\n              }\n              const $acceptReplyBtn = $postControls.find('.unaccepted, .accepted');\n              if ($acceptReplyBtn) {\n                $acceptReplyBtn.parent().addClass(\"accept-reply-wrapper\");\n              }\n            });\n          }\n        });\n      });\n    }\n  };\n  _exports.default = _default;\n});\n}\n","if ('define' in window) {\ndefine(\"discourse/theme-166/initializers/theme-field-231-common-html-script-13\", [\"exports\", \"discourse/lib/plugin-api\"], function (_exports, _pluginApi) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const settings = require(\"discourse/lib/theme-settings-store\").getObjectForTheme(166);\n  const themePrefix = key => `theme_translations.166.${key}`;\n  var _default = {\n    name: \"theme-field-231-common-html-script-13\",\n    after: \"inject-objects\",\n    initialize() {\n      (0, _pluginApi.withPluginApi)(\"0.8\", api => {\n        const Category = require('discourse/models/category').default;\n        var voteCatSlugs = Category.list().map(function (category) {\n          if (category.can_vote) {\n            return category.slug;\n          }\n        });\n        api.modifyClass(\"component:topic-list\", {\n          pluginId: 'discourse-theme-qa',\n          didInsertElement: function () {\n            this._super();\n            if (this.category) {\n              let currentCatSlug = this.category.slug;\n              $.each(voteCatSlugs, function (i, voteCatSlug) {\n                if (voteCatSlug == currentCatSlug) {\n                  //$(\".list-container\").addClass(\"voting-category\");\n                  $(\".topic-list\").addClass(\"voting-category\");\n                  return false;\n                }\n              });\n            }\n          }\n        });\n        api.modifyClass(\"component:topic-list-item\", {\n          pluginId: 'discourse-theme-qa',\n          attributeBindings: [\"data-topic-vote-count\"],\n          \"data-topic-vote-count\": Em.computed.alias(\"topic.vote_count\"),\n          unboundClassNames: Ember.computed(function () {\n            let classes = this._super();\n            let topic = this.attrs.topic.value;\n            if (topic.vote_count == null) {\n              classes += \" about-topic\";\n            }\n            return classes;\n          }),\n          didInsertElement: function () {\n            this._super();\n            var topic = this.attrs.topic.value;\n            if (topic.vote_count != null) {\n              $(function () {\n                let currentCatSlug = topic.category.slug;\n                $.each(voteCatSlugs, function (i, voteCatSlug) {\n                  if (voteCatSlug == currentCatSlug) {\n                    //let $voteCount = $(\".category-\" + voteCatSlug + \" [data-topic-id=\" + topic.id + \"] .vote-count-before-title\");\n                    let $voteCount = $(\"[data-topic-id='\" + topic.id + \"'] .vote-count-before-title\");\n                    $voteCount.attr({\n                      href: \"/t/\" + topic.id,\n                      \"data-user-voted\": topic.user_voted\n                    });\n                    if (topic.user_voted) {\n                      $voteCount.attr(\"title\", \"You voted\");\n                    }\n                    return false;\n                  }\n                });\n              });\n            }\n          }\n        });\n      });\n    }\n  };\n  _exports.default = _default;\n});\n}\n","if ('define' in window) {\ndefine(\"discourse/theme-166/initializers/theme-field-231-common-html-script-14\", [\"exports\", \"discourse/lib/plugin-api\"], function (_exports, _pluginApi) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const settings = require(\"discourse/lib/theme-settings-store\").getObjectForTheme(166);\n  const themePrefix = key => `theme_translations.166.${key}`;\n  var _default = {\n    name: \"theme-field-231-common-html-script-14\",\n    after: \"inject-objects\",\n    initialize() {\n      (0, _pluginApi.withPluginApi)(\"0.8\", api => {\n        const CategoryNotificationsButton = require(\"select-kit/components/category-notifications-button\").default;\n        const {\n          NotificationLevels\n        } = require(\"discourse/lib/notification-levels\");\n        CategoryNotificationsButton.reopen({\n          computeContent() {\n            const content = this.get(\"content\");\n            return content.filter(c => {\n              return [NotificationLevels.REGULAR, NotificationLevels.MUTED].indexOf(c.id) > -1;\n            });\n          }\n        });\n      });\n    }\n  };\n  _exports.default = _default;\n});\n}\n","\n\n  /* TODO:\n    - Add a skeleton preloader for empty advoNav container\n    - Streaker mobile improve a way to default (currently can't default parent container)\n    - Carousel still causes a single jump (likely caused by skeleton preloader state)\n  */\n\n  const heightRefreshDayRate = 1;\n  const heightCheckDelay = 3000;\n  const attemptTime = 60000;\n\n  const getCurrBreakpoint = () => window.innerWidth < 768 ? 'xs' : 'l';\n\n  const currHub = window.location.hostname.split('.')[0];\n  const breakpoint = getCurrBreakpoint();\n  const lsKey = `defaultHeights-${breakpoint}-${currHub}`;\n  const lsItem = localStorage.getItem(lsKey);\n  const defaultHeights = lsItem ? JSON.parse(lsItem) : {};\n\n  const attemptInterval = (fn, rate) => {\n      const startTime = Date.now();\n      const intervalInstance = setInterval(() => {\n          if (startTime < Date.now() - attemptTime) clearInterval(intervalInstance);\n          fn(intervalInstance);\n      }, rate);\n      return intervalInstance;\n  };\n\n  const updateHeight = (app, newHeight) => localStorage.setItem(\n      lsKey,\n      JSON.stringify(Object.assign({}, defaultHeights, {\n          [app]: { height: newHeight, lastUpdated: Date.now() }\n      }))\n  );\n\n  const updateEl = (elSelector, newHeight) => {\n      const startTime = Date.now();\n      attemptInterval(intervalInstance => {\n          const $el = $(elSelector);\n          if ($el.length) {\n              $(elSelector).css('minHeight', newHeight);\n              clearInterval(intervalInstance);\n          }\n      }, 250);\n  };\n\n  const updateHeaderHeightOnResize = () => {\n    const header = $('#infl-fe-advocate-nav');\n\n    header.css('minHeight', '');\n  }\n\n  window.addEventListener('ADVOCATE_NAV::LOADED', updateHeaderHeightOnResize)\n\n  const needsRefresh = lastUpdated => lastUpdated < Date.now() - 86400000 * heightRefreshDayRate;\n\n  const updateApp = (appSelector, appKey, testElSelector, heightElSelector) => {\n      if (defaultHeights && defaultHeights[appKey] && !needsRefresh(defaultHeights[appKey].lastUpdated)) {\n          updateEl(appSelector, defaultHeights[appKey].height);\n      } else {\n        attemptInterval(intervalInstance => {\n            const $testEl = $(testElSelector);\n            if ($testEl.length) {\n                setTimeout(() => {\n                    const newHeight = $(heightElSelector).height();\n                    updateHeight(appKey, newHeight);\n                    updateEl(appSelector, newHeight);\n                }, heightCheckDelay);\n                clearInterval(intervalInstance);\n            }\n        }, 500);\n      }\n  };\n\n  const updateAdvoNav = () => updateApp(\n      '#infl-fe-advocate-nav',\n      'advoNav',\n      window.innerWidth < 768\n          ? '#infl-fe-advocate-nav [data-qa=\"ADVOCATE-NAV-FE_mobile-nav\"]'\n          : '#infl-fe-advocate-nav [data-qa=\"ADVOCATE-NAV-FE_custom-banner\"]',\n      '#infl-fe-advocate-nav [data-qa=\"ADVOCATE-NAV-FE_app\"]'\n  );\n\n  $(() => {\n      updateAdvoNav();\n  });\n\n","\n    function escapeHtml(unsafe)\n    {\n        return unsafe\n             .replace(/&/g, \"&amp;\")\n             .replace(/</g, \"&lt;\")\n             .replace(/>/g, \"&gt;\")\n             .replace(/\"/g, \"&quot;\")\n             .replace(/'/g, \"&#039;\");\n    }\n\n    const helpers = require(\"discourse-common/lib/helpers\");\n    helpers.registerHelper('sanitizeHTML', function(dirty) {\n        return escapeHtml(dirty[0]);\n    });\n\n"]}